package homework;

 public class Sort 
 {
int[] a={455,60,30,40,35,10,2,8,15,78};
	
public void sorting()
	{
	for(int i=0;i<a.length;i++)
	{
		for(int j=0;j<a.length-1;j++)
		{
			if(a[j]>a[j+1])
				{
				int temp=a[j];
				a[j]=a[j+1];
				a[j+1]=temp;
				
				}
		}
		
	}
	
	for(int k=0;k<a.length;k++)
	{
	System.out.println(a[k]);
		
		
	}
		
	
		
}

 
 }